package com.qiang;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Test05 {
    public static void main(String[] args) {
        /*List<String> zhangsan = List.of("zhangsan", "lisi");
        System.out.println(zhangsan);
        Set<String> zhangsan1 = Set.of("zhangsan", "lisi");
        System.out.println(zhangsan1);*/

     /*   Map<String, Integer> map = Map.of("zhangsan", 21, "lisi", 23);

        System.out.println(map);*/
        /*Map<String, String> ss = Map.ofEntries(Map.entry("zhangsan", "江苏"), Map.entry("lisi", "北京"));
        System.out.println(ss);*/

        ArrayList<String> list = new ArrayList<String>();
        list.add("林青霞");
        list.add("张曼玉");
        list.add("王祖贤");
        list.add("柳岩");
        list.add("张敏");
        list.add("张无忌");
        list.stream().filter(s->s.startsWith("张")).forEach(s-> System.out.println(s));
    }
}
